<template>
  <tr id="dgaj">
    <td>{{ index + 1 }}</td>
    <td>{{ created_at }}</td>
    <td>{{ height }}</td>
    <td>{{ weight }}</td>
    <td>{{ bmi }}</td>
    <td>
      <a @click="del" href="javascript:void(0)">删除</a>
    </td>
  </tr>
</template>

<script>
export default {
  props: ["index", "created_at", "height", "weight", "bmi","iid"],
  methods: {
    del() {
      console.log("删除数据")
      this.$emit("delete-item",this.iid)
    }
  }
}
</script>

